package com.sunbim.rsrv.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 文物保护工程
 * </p>
 *
 * @author yuhui
 * @since 2022-01-16
 */
@Getter
@Setter
@TableName("protection")
@ApiModel(value = "Protection对象", description = "文物保护工程")
public class Protection implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("所属文物id")
    @TableField("relics_id")
    @JsonProperty("relics_id")
    private Integer relicsId;

    @ApiModelProperty("保护时间")
    @TableField("work_date")
    @JsonProperty("work_date")
    private String workDate;

    @ApiModelProperty("保护工程、保护规划概况")
    @TableField("work_desc")
    @JsonProperty("work_desc")
    private String workDesc;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonProperty("create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonProperty("update_time")
    private LocalDateTime updateTime;


}
